package com.hc.fdkgoods.controller;


import com.hc.fdkgoods.common.Result;
import com.hc.fdkgoods.service.ForwarderSummaryListService_2;
import com.hc.fdkgoods.service.ToPushSummaryListService_4;
import com.hc.fdkgoods.vo.vo_2.ForwarderSummaryVO;
import com.hc.fdkgoods.vo.vo_4.SummarySumVO;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/forwarder")

public class ForwarderSummaryController {
    @Resource
    ForwarderSummaryListService_2 forwarderSummaryListService;

    @GetMapping("/wait/push/summary")
    public Result<ForwarderSummaryVO> queryForwarderSummaryList(){

        return Result.ok(forwarderSummaryListService.queryForwarderSummary());
    }
    @Resource
    ToPushSummaryListService_4 toPushSummaryListService_4;
    @GetMapping("summary/sum")
    public Result<SummarySumVO> queryToPushSummaryList(){
        return  Result.ok(toPushSummaryListService_4.queryToPushSummary());
    }
}
